Add an install-time check for hotplug.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 23 Sep 2005 19:09:59 +0000 (20:09 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 23 Sep 2005 19:09:59 +0000 (20:09 +0100)
The hotplug subsystem is currently needed for block devices to work, as
of changeset 6742:e9d01c5dc7b4d6b7cda9ade0d137ddb89bb204cc.  Add a
script to check for the presence of hotplug and warn if it isn't found.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
tools/check/check_hotplug [new file with mode: 0644]

diff --git a/tools/check/check_hotplug b/tools/check/check_hotplug
new file mode 100644 (file)
index 0000000..15c9021
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+# CHECK-INSTALL
+
+function error {
+   echo
+   echo '  *** Check for the hotplug scripts (hotplug) FAILED'
+   exit 1
+}
+
+which hotplug 1>/dev/null 2>&1 || error